﻿using CPPEI.Coolzon.UI.Script;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading.Tasks;

namespace CPPEI.Coolzon.UI
{
    public partial class AreaPart
    {
        public override void LoadViewState(Coolzon.ViewState.ViewState viewState)
        {
            #region load sub part viewstate
            for (int index = 0; index < this._partCollection.Count; index++)
            {
                this._partCollection[index].LoadViewState(viewState);
            }
            #endregion
        }

        public override void SaveViewState(Coolzon.ViewState.ViewState viewState)
        {
            #region save sub part viewstate
            for (int index = 0; index < this._partCollection.Count; index++)
            {
                UI.Part subPart = this._partCollection[index];
                subPart.SaveViewState(viewState);
            }
            #endregion
        }
    }
}
